<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="html" encoding="ISO-8859-1" />
	<xsl:template match="/">

		<LINK rel="stylesheet" type="text/css" href="pizza.css" />

		<xsl:apply-templates select="//pizza"/>
	
	</xsl:template>

	<xsl:template match="pizza">
		<p>
			<h1><xsl:value-of select="nom" /></h1>
			<img>
				<xsl:attribute name="src">
					<xsl:value-of select="imageURL"></xsl:value-of>
				</xsl:attribute>
				<xsl:attribute name="att">
					<xsl:value-of select="nom"></xsl:value-of>
				</xsl:attribute>
			</img>
			<b>ingredients : </b><br />
			<xsl:apply-templates select="ingredient" /><br />
		</p> 
	</xsl:template>
	
	<xsl:template match="ingredient">
			<xsl:value-of select="." /> -
	</xsl:template>
	
</xsl:stylesheet>

